package com.hengyue.common.enums;


import com.hengyue.common.core.baseenum.IBaseEnum;
import com.hengyue.common.converter.EnumAttributeConverter;

public enum GenderEnum implements IBaseEnum<GenderEnum> {
    UNKNOWN(0, "未知"),

    MALE(1, "男"),

    FEMALE(9, "女");

    GenderEnum(Integer code, String description) {
        initEnum(code,description);
    }

    @Override
    public GenderEnum getByCode(Integer code) {
        return getByCode(GenderEnum.class,code);
    }

    public static class Covert extends EnumAttributeConverter<GenderEnum>{}
}
